﻿using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZyGames.DZPocker.Model;
using ZyGames.Framework.Model;

namespace ZyGames.DZPocker.Model
{
	/// <summary>
	/// 玩家的下注Log记录
	/// </summary>
	[Serializable, ProtoContract]
	[EntityTable(AccessLevel.WriteOnly, DbConfig.Log)]
	public class LogUserBetRecord : LogEntity
	{
		public LogUserBetRecord()
		{

		}
		/// <summary>
		/// </summary>
		public LogUserBetRecord(long logID)
			: this()
		{
			LogID = logID;
		}

		/// <summary>
		/// 
		/// </summary>        
		[ProtoMember(1)]
		[EntityField(true, IsIdentity = true)]
		public long LogID { get; set; }

		/// <summary>
		/// 玩家ID
		/// </summary>        
		[ProtoMember(2)]
		[EntityField]
		public int UserID { get; set; }

		[ProtoMember(3)]
		[EntityField]
		public string UserName { get; set; }

		[ProtoMember(4)]
		[EntityField]
		public string UserHeadIcon { get; set; }

		/// <summary>
		/// 桌子ID
		/// </summary>        
		[ProtoMember(5)]
		[EntityField]
		public int TableID { get; set; }

		/// <summary>
		/// 下注类型 参考PositionPlayState
		/// </summary>        
		[ProtoMember(6)]
		[EntityField]
		public string BetType { get; set; }

		/// <summary>
		/// 下注筹码
		/// </summary>        
		[ProtoMember(7)]
		[EntityField]
		public int BetNum { get; set; }

		/// <summary>
		/// 回合数
		/// </summary>
		[ProtoMember(8)]
		[EntityField]
		public int Round { get; set; }
	}
}